package com.hnhegui.backend.platform.convert.order;

import com.hnhegui.backend.entity.PageResult;
import com.hnhegui.backend.order.dto.request.CreateOrderRequestDTO;
import com.hnhegui.backend.order.dto.response.CreateOrderResponseDTO;
import com.hnhegui.backend.order.dto.response.OrderDocumentResponseDTO;
import com.hnhegui.backend.platform.vo.order.request.CreateOrderRequestVO;
import com.hnhegui.backend.platform.vo.order.response.CreateOrderResponseVO;
import com.hnhegui.backend.platform.vo.order.response.OrderDocumentResponseVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author 刘大海
 * @since 2025/10/27 11:13
 */
@Mapper
public interface OrderConvert {
    OrderConvert INSTANCE = Mappers.getMapper(OrderConvert.class);

    CreateOrderRequestDTO convertCreateOrderRequest(CreateOrderRequestVO request);

    CreateOrderResponseVO convertCreateOrderResponse(CreateOrderResponseDTO data);

    PageResult<OrderDocumentResponseVO> convertPage(PageResult<OrderDocumentResponseDTO> orderPage);

    OrderDocumentResponseVO convertOrderDocument(OrderDocumentResponseDTO data);
}
